用Collections.sort方法对list排序有两种方法

第一种是list中的对象实现Comparable接口,如下: /** * 根据order对User排序 */ … 继续阅读 用Collections.sort方法对list排序有两种方法